package com.bkgy.modular.tbdsjruleedit.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bkgy.modular.tbdsjruleedit.entity.TbDsjRuleEdit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 简易规则编辑表dao接口
 * @author  生成器生成
 * @date 2022-07-27 09:54:52
 * */
@Mapper
@DS("db2")
public interface TbDsjRuleEditDao extends BaseMapper<TbDsjRuleEdit> {

	/**
	 * 添加记录
	 * @param tbDsjRuleEdit  对象实体
	 * */
	public void insertDataTbDsjRuleEdit(TbDsjRuleEdit tbDsjRuleEdit);
	
	/**
	 * 根据主键删除对象
	 * @param indocno  对象主键
	 * */
	public void deleteDataTbDsjRuleEditOne(@Param("calc_result_variable") String calc_result_variable);
	
	/**
     * 删除多个对象
     * @param value sql语句
     */
    public void deleteDataTbDsjRuleEditMany(String value);
	
	/**
	 * 修改记录
	 * @param tbDsjRuleEdit  对象实体
	 * */
	public void updateDataTbDsjRuleEdit(TbDsjRuleEdit tbDsjRuleEdit);
	
	
	/**
     * 分页查看查看记录
     * @param pageIndex 第几页
     * @param pageSize  每页总数
     * @return 对象数据集合
     */
    public List<TbDsjRuleEdit> findDataTbDsjRuleEditByPage(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize,@Param("process_rule_description") String process_rule_description,@Param("calc_result_variable") String calc_result_variable,@Param("dic_variable_name_calc") String dic_variable_name_calc);
    
    /**
     * 根据条件查看记录的总数
     * @return 对象数据集合
     */
    public Integer findDataTbDsjRuleEditByPageSize(@Param("process_rule_description") String process_rule_description,@Param("calc_result_variable") String calc_result_variable,@Param("dic_variable_name_calc") String dic_variable_name_calc);
    
    /***
     * 根据主键查询信息
     * @param indocno 用户id
     * @return
     */
    public TbDsjRuleEdit findDataTbDsjRuleEditByIndocno(@Param("indocno") Long indocno);
	
	/**
	 * 查看记录
	 * @return 对象数据集合
	 * */
	public List<TbDsjRuleEdit> findDataTbDsjRuleEdit();


	List<TbDsjRuleEdit> findDataByAlias(List<String> alias);

	
}
